//Source file: D:\\test\\com\\ce\\pms\\charge\\model\\PrePayAccountDomain.java

package com.ce.pms.charge.model;

import java.math.BigDecimal;

import javax.persistence.*;

/**
 * 实体名称:预交款账户 关联数据表:FEE_SUB_ACCOUNT
 * @author Adama Yue
 * @CreateDate:2008-7-11
 */
@Entity
@DiscriminatorValue("002")
@SecondaryTable(name = "FEE_PRE_ACCOUNT_SCH", pkJoinColumns = @PrimaryKeyJoinColumn(name = "PART_ACCOUNT_ID"))
public class PrePayAccountDomain extends AbstractSubAccount {

	/**
	 * 预交方案
	 */
	@OneToOne()
	@JoinColumn(table = "FEE_PRE_ACCOUNT_SCH", name = "PRE_PAY_SCH_ID")
	private PrePaySchDomain prePaySch;

	/**
	 * @roseuid 48757D160128
	 */
	public PrePayAccountDomain() {
	}

	/**
	 *
	 * @param account
	 * @param balance
	 * @param prePaySch
	 */
	public PrePayAccountDomain(AccountDomain account, BigDecimal balance,
			PrePaySchDomain prePaySch) {
		super(account, balance);
		this.prePaySch = prePaySch;
	}
	/*********************************************
	 * Accessors and modifiers
	 *********************************************/

	public PrePaySchDomain getPrePaySch() {
		return prePaySch;
	}

	public void setPrePaySch(PrePaySchDomain prePaySch) {
		this.prePaySch = prePaySch;
	}


}
